import { defineStore } from 'pinia';

export const useFavoriteStore = defineStore('favorite', {
  state: () => {
    return {
      orders: []
    }
  },
  actions: {
    getOrders() {
      uni.request({
        url: "/user/stars",
        success: ({ data }) => {
          this.orders = data
        }
      })
    }
  }
})